import Vue from 'vue'
import DataDict from '@/utils/dict'
import { getSelecttDicts as getDicts  } from "@/api/system/configs";
function install() {
    Vue.use(DataDict, {
        metas: {
            '*': {
                labelField: 'dict_label',
                valueField: 'dict_value',
                request(dictMeta) {
                    return getDicts(dictMeta.type).then(res => res.data)
                },
            },
        },
    })
}
export default {
    install,
}
